package com.tcfvic.client.pojos;
// Generated 29/03/2010 9:10:02 PM by Hibernate Tools 3.1.0.beta4

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;


/**
 * Jsp generated by hbm2java
 */
@Entity
@Table(name="jsp"
    
, uniqueConstraints = {  }
)

public class Jsp  implements java.io.Serializable {


    // Fields    

     private int id;
     private String name;
     private String phone;
     private String notes;
     private String street;
     private String street2;
     private String suburb;
     private String state;
     private Integer postcode;
     private String display;
     private String website;
     private Set<Personjsp> personjsps = new HashSet<Personjsp>(0);


    // Constructors

    /** default constructor */
    public Jsp() {
    }

	/** minimal constructor */
    public Jsp(int id) {
        this.id = id;
    }
    
    /** full constructor */
    public Jsp(int id, String name, String phone, String notes, String street, String street2, String suburb, String state, Integer postcode, String display, Set<Personjsp> personjsps) {
        this.id = id;
        this.name = name;
        this.phone = phone;
        this.notes = notes;
        this.street = street;
        this.street2 = street2;
        this.suburb = suburb;
        this.state = state;
        this.postcode = postcode;
        this.personjsps = personjsps;
        this.display = display;
    }
    

   
    // Property accessors
    @Id
    @Column(name="id", unique=true, nullable=false, insertable=true, updatable=true)
@GeneratedValue(strategy=GenerationType.AUTO)

    public int getId() {
        return this.id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    @Column(name="name", unique=false, nullable=true, insertable=true, updatable=true, length=450)

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    @Column(name="phone", unique=false, nullable=true, insertable=true, updatable=true, length=45)

    public String getPhone() {
        return this.phone;
    }
    
    public void setPhone(String phone) {
        this.phone = phone;
    }
    @Column(name="notes", unique=false, nullable=true, insertable=true, updatable=true, length=4500)

    public String getNotes() {
        return this.notes;
    }
    
    public void setNotes(String notes) {
        this.notes = notes;
    }
    @Column(name="street", unique=false, nullable=true, insertable=true, updatable=true, length=100)

    public String getStreet() {
        return this.street;
    }
    
    public void setStreet(String street) {
        this.street = street;
    }
    @Column(name="street2", unique=false, nullable=true, insertable=true, updatable=true, length=100)

    public String getStreet2() {
        return this.street2;
    }
    
    public void setStreet2(String street2) {
        this.street2 = street2;
    }
    @Column(name="suburb", unique=false, nullable=true, insertable=true, updatable=true, length=45)

    public String getSuburb() {
        return this.suburb;
    }
    
    public void setSuburb(String suburb) {
        this.suburb = suburb;
    }
    @Column(name="state", unique=false, nullable=true, insertable=true, updatable=true, length=45)

    public String getState() {
        return this.state;
    }
    
    public void setState(String state) {
        this.state = state;
    }
    @Column(name="postcode", unique=false, nullable=true, insertable=true, updatable=true)

    public Integer getPostcode() {
        return this.postcode;
    }
    
    public void setPostcode(Integer postcode) {
        this.postcode = postcode;
    }
    @OneToMany(cascade={CascadeType.ALL}, fetch=FetchType.LAZY, mappedBy="jsp")

    public Set<Personjsp> getPersonjsps() {
        return this.personjsps;
    }
    
    public void setPersonjsps(Set<Personjsp> personjsps) {
        this.personjsps = personjsps;
    }
   

	public void setDisplay(String display) {
		this.display = display;
	}

    @Column(name="display", unique=false, nullable=true, insertable=true, updatable=true, length=100)
	public String getDisplay() {
		return display;
	}

    public void setWebsite(String website) {
    	this.website = website;
    }
    
    @Column(name="website", unique=false, nullable=true, insertable=true, updatable=true, length=1000)
    public String getWebsite() {
    	return website;
    }
    
}
